<?php

	header("Content-Type: text/html;charset=utf-8");

	include("function/_nosql.php"); //

	include("function/function.php");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>活动_<?= $web_titles ?></title>

<meta name="Keywords" content="活动,<?= $web_keywords ?>" />

<meta name="Description" content="<?= $web_description ?>" />

<link rel="stylesheet" href="css/common.css"/>

<link rel="stylesheet" href="css/activity.css"/>
<script type="text/javascript" src="js/baidutongji.js"></script>
<script type="text/javascript" src="js/laydate/laydate.js"></script>

</head>

<body>

    <!--top-bar begin-->

	<? include("_include.top.topbar.php") ?>

    <!--top-bar end-->

    <!--header begin-->

	<? include("_include.top.navbar.php") ?>

    <!--banner begin-->

    <div class="hd-banner">

        <div class="hd">

            <ul>

			<?php

				$piclink_sql = "select * from kboy_piclink where news_bigclass=133 order by news_top desc,news_order desc, id desc limit 5";

				$piclink_rows = mysql_query($piclink_sql);

				while($piclink_rs = mysql_fetch_array($piclink_rows)){

					echo "<li></li>";

				}

			?>

			</ul>

        </div>

        <div class="bd">

            <ul>

			<?php

				$piclink_sql = "select * from kboy_piclink where news_bigclass=133 order by news_top desc,news_order desc, id desc limit 5";

				$piclink_rows = mysql_query($piclink_sql);

				while($piclink_rs = mysql_fetch_array($piclink_rows)){

					echo "<li><a href=\"".$piclink_rs['news_tourls']."\" style=\"background:url(".$piclink_rs['news_pic'].") no-repeat center center\"></a></li>";

				}

			?>

            </ul>

        </div>

        <div class="hd-fast-nav">

            <!--<div class="fast-inner">

                <dl>

                    <dt>

                        <div class="title">

                            <div class="t-l"><i></i>热门主题</div>

                            <div class="t-r"><a href="active_search.php">更多&gt;&gt;</a></div>

                        </div>

                    </dt>

                    <dd>

                        <ul class="f-list">

					<?php

						$piclink_sql = "select * from kboy_piclink where news_bigclass=129 order by news_top desc,news_order desc, id desc limit 6";

						$piclink_rows = mysql_query($piclink_sql);

						while($piclink_rs = mysql_fetch_array($piclink_rows)){

							echo "<li><a href=\"".$piclink_rs['news_tourls']."\">".$piclink_rs['news_title']."</a></li>";

						}

					?>

                        </ul>

                    </dd>

                </dl>

                <dl>

                    <dt>

                    <div class="title">

                        <div class="t-l"><i></i>目的地</div>

                        <div class="t-r"><a href="active_search.php">更多&gt;&gt;</a></div>

                    </div>

                    </dt>

                    <dd>

                        <ul class="f-list">

					<?php

						$piclink_sql = "select * from kboy_piclink where news_bigclass=130 order by news_top desc,news_order desc, id desc limit 6";

						$piclink_rows = mysql_query($piclink_sql);

						while($piclink_rs = mysql_fetch_array($piclink_rows)){

							echo "<li><a href=\"".$piclink_rs['news_tourls']."\">".$piclink_rs['news_title']."</a></li>";

						}

					?>

                        </ul>

                    </dd>

                </dl>

                <dl>

                    <dt>

                    <div class="title">

                        <div class="t-l"><i></i>行程时间</div>

                        <div class="t-r"><a href="active_search.php">更多&gt;&gt;</a></div>

                    </div>

                    </dt>

                    <dd>

                        <ul class="f-list">

					<?php

						$piclink_sql = "select * from kboy_piclink where news_bigclass=131 order by news_top desc,news_order desc, id desc limit 6";

						$piclink_rows = mysql_query($piclink_sql);

						while($piclink_rs = mysql_fetch_array($piclink_rows)){

							echo "<li><a href=\"".$piclink_rs['news_tourls']."\">".$piclink_rs['news_title']."</a></li>";

						}

					?>

                        </ul>

                    </dd>

                </dl>

            </div>-->

        </div>

        <!--<div class="banner-inner">

            <div class="search-box">

				<form name="SearchForm" id="SearchForm" method="post" action="active_search.php">

					<input type="text" class="search-text input_wby" value="搜索目的地/攻略/活动" name="search_text"/>

					<input type="submit" class="search-send" value=""/>

				</form>

            </div>

        </div>-->



    </div>

    <!--banner end-->

    <!--活动 begin-->

	

    

    <div class="f-item-box">

        <div class="content">

            <div class="f-item-title">

                <p class="tips">DISTRIBUTION ACTIVITIES</p>

                <div class="title-in">

                    <span class="sprite_l"></span>

                    <a href="active_class.php?classid=135"><?php echo getClassName("kboy_bigclass", "bigclass_cn","id = 135") ?></a> 

                    <span class="sprite_r"></span>

                </div>
                    <a href="active_class.php?classid=135">更多>>></a>

            </div>

            <div class="bd-content">

                <div class="con-pane on">

                    <div class="con-f1">

                        <div class="hd-con-1">

                        <ul class="hd-hot-list">

						<?php	

								$news_sql = "select * from kboy_forum_active where active_bigclass=135 and active_model = 0 and active_state = 0 order by active_top desc,active_order desc, id desc limit 8";

								$news_rows = mysql_query($news_sql);

								while($news_rs = mysql_fetch_array($news_rows)){

								//var_dump($news_rs);

						?>

                            <li>

                                <a href="activeview.php?newsid=<?=$news_rs['id']?>" target="_blank">

                                    <div class="hd-pic">

                                        <img src="<?php  
                                        		 $news_rss = explode(',',$news_rs['active_pic']);
												if($news_rss){
													echo $news_rss[0];
												}else{
													echo $news_rs['active_pic'];
												}
                                        ?>" width="270" height="222" alt=""/>

                                        <div class="shadow">

                                            <div class="date"><i></i><span><?=date("Y/m/d",strtotime($news_rs['active_start_time'],time()));?></span> - <span><?=date("Y/m/d",strtotime($news_rs['active_end_time'],time()));?></span></div>

                                            <div class="btn-group"><span class="watch"><i></i><?=$news_rs['active_hits'];?></span><span class="mess"><i></i>

											<?=getNewsNums("kboy_active_message","newsid=".$news_rs['id']);?></span><span class="good"><i></i><?=getNewsNums("kboy_forum_favorite","newsid=".$news_rs['id']);?></span></div>

                                            <div class="more">更多&gt;&gt;</div>

                                        </div>

                                    </div>





                                    <div class="bd-pic">

                                        <div class="title"><?=$news_rs['active_title']?></div>

                                        <div class="f-floor">

                                            <div class="price"><span style="font-size: 16px !important;">强度 : </span><?=getClassName("kboy_bigclass","bigclass_cn","id=".$news_rs['active_power'])?></div>

                                            <div class="go"><i></i><span><?=$news_rs['active_start_prov']?></span> 出发</div>

                                        </div>

                                    </div>

                                </a>

                            </li>

						<?php

								}

						?>

                        </ul>

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </div>

    <div class="f-item-box">

        <div class="content">

            <div class="f-item-title">

                <p class="tips">DISTRIBUTION ACTIVITIES</p>

                <div class="title-in">

                    <span class="sprite_l"></span>

                    <a href="active_class.php?classid=136"><?php echo getClassName("kboy_bigclass", "bigclass_cn","id = 136") ?></a>

                    <span class="sprite_r"></span>

                </div>
                    <a href="active_class.php?classid=136">更多>>></a>
            </div>

            <div class="bd-content">

                <div class="con-pane on">

                    <div class="con-f1">

                        <div class="hd-con-2">

                            <div class="hd-hot-bar">

                                <div class="pic"><?=getBanners(210,200,310)?></div>

                            </div>

                        <ul class="hd-hot-list">

						<?php	

								$news_sql = "select * from kboy_forum_active where active_bigclass=136 and active_model = 0 and active_state = 0 order by active_top desc,active_order desc, id desc limit 4";

								$news_rows = mysql_query($news_sql);

								while($news_rs = mysql_fetch_array($news_rows)){

						?>

                            <li>

                                <a href="activeview.php?newsid=<?=$news_rs['id']?>" target="_blank">

                                    <div class="hd-pic">

                                        <img src="<?php  
                                         $news_rss = explode(',',$news_rs['active_pic']);
												if($news_rss){
													echo $news_rss[0];
												}else{
													echo $news_rs['active_pic'];
												}
                                        ?>" width="228" height="222" alt=""/>

                                        <div class="shadow">

                                            <div class="date"><i></i><span><?=date("Y/m/d",strtotime($news_rs['active_start_time'],time()));?></span> - <span><?=date("Y/m/d",strtotime($news_rs['active_end_time'],time()));?></span></div>

                                            <div class="btn-group"><span class="watch"><i></i><?=$news_rs['active_hits'];?></span><span class="mess"><i></i><?=getNewsNums("kboy_active_message","newsid=".$news_rs['id']);?></span><span class="good"><i></i><?=getNewsNums("kboy_forum_favorite","newsid=".$news_rs['id']);?></span></div>

                                            <div class="more">更多&gt;&gt;</div>

                                        </div>

                                    </div>





                                    <div class="bd-pic">

                                        <div class="title"><?=$news_rs['active_title']?></div>

                                        <div class="f-floor">

                                            <div class="price"><span style="font-size: 16px !important;">强度 : </span><?=getClassName("kboy_bigclass","bigclass_cn","id=".$news_rs['active_power'])?></div>

                                            <div class="go"><i></i><span><?=$news_rs['active_start_prov']?></span> 出发</div>

                                        </div>

                                    </div>

                                </a>

                            </li>

						<?php

								}

						?>

                        </ul>

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </div>

    <div class="f-item-box">

        <div class="content">

            <div class="f-item-title">

                <p class="tips">DISTRIBUTION ACTIVITIES</p>

                <div class="title-in">

                    <span class="sprite_l"></span>

                    <a href="active_class.php?classid=137"><?php echo getClassName("kboy_bigclass", "bigclass_cn","id = 137") ?></a>

                    <span class="sprite_r"></span>

                </div>
                    <a href="active_class.php?classid=137">更多>>></a>
            </div>

            <div class="bd-content">

                <div class="con-pane on">

                    <div class="con-f1">

                        <div class="hd-con-3">

                            <div class="hd-hot-bar">

                                <div class="pic"><?=getBanners(211,200,310)?></div>

                            </div>

                        <ul class="hd-hot-list">

						<?php	

								$news_sql = "select * from kboy_forum_active where active_bigclass=137 and active_model = 0 and active_state = 0 order by active_top desc,active_order desc, id desc limit 4";

								$news_rows = mysql_query($news_sql);

								while($news_rs = mysql_fetch_array($news_rows)){

						?>

                            <li>

                                <a href="activeview.php?newsid=<?=$news_rs['id']?>" target="_blank">

                                    <div class="hd-pic">

                                        <img src="<?php	
                                         $news_rss = explode(',',$news_rs['active_pic']);
												if($news_rss){
													echo $news_rss[0];
												}else{
													echo $news_rs['active_pic'];
												}
                                        
                                        ?>" width="228" height="222" alt=""/>

                                        <div class="shadow">

                                            <div class="date"><i></i><span><?=date("Y/m/d",strtotime($news_rs['active_start_time'],time()));?></span> - <span><?=date("Y/m/d",strtotime($news_rs['active_end_time'],time()));?></span></div>

                                            <div class="btn-group"><span class="watch"><i></i><?=$news_rs['active_hits'];?></span><span class="mess"><i></i><?=getNewsNums("kboy_active_message","newsid=".$news_rs['id']);?></span><span class="good"><i></i><?=getNewsNums("kboy_forum_favorite","newsid=".$news_rs['id']);?></span></div>

                                            <div class="more">更多&gt;&gt;</div>

                                        </div>

                                    </div>





                                    <div class="bd-pic">

                                        <div class="title"><?=$news_rs['active_title']?></div>

                                        <div class="f-floor">

                                            <div class="price">￥<?=$news_rs['active_all_money']?></div>

                                            <div class="go"><i></i><span><?=$news_rs['active_start_prov']?></span> 出发</div>

                                        </div>

                                    </div>

                                </a>

                            </li>

						<?php

								}

						?>

                        </ul>

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </div>

	

	

	

    <div class="f-item-box">

        <div class="content">

            <div class="f-item-title">

                <p class="tips">THE LEADER STYLE</p>

                <div class="title-in">

                    <span class="sprite_l"></span>

                    <a href="leader.php"><?php echo getClassName("kboy_bigclass", "bigclass_cn","id = 287") ?></a>

                    <span class="sprite_r"></span>

                </div>
                    <a href="leader.php">更多>>></a>
            </div>

            <div class="bd-content">

                <div class="con-pane on">

                    <div class="leader-list leader-list1">

                        <div class="bd">

                            <ul>

									<?php

										$user_sql = "select * from kboy_user where user_leader=1 order by user_activetime desc limit 14";

										$user_rows = mysql_query($user_sql);

										while($user_rs = mysql_fetch_array($user_rows)){

									?>

                                            <li>

                                                <a href="forum_news.php?uid=<?=$user_rs['uid']?>" target="_blank">

                                                    <div class="leader-intro">

                                                        <div class="pic"><img src="<?=$user_rs['user_face']?>" width="130" height="130" alt=""></div>

                                                        <div class="info">

                                                            <p class="p-name"><?=getUserNickName($user_rs['uid'])?></p>

                                                            <p>性别：<?php

															 if($user_rs['user_sex'] == 1){

															 	echo "男";

															 }elseif($user_rs['user_sex'] == 0){

															 	echo "女";

															 }else{

															 	echo "保密";

															 }

															 ?></p>

                                                            <!--<p>好评率：0%</p>-->

                                                            <p>带队人数：<?=$user_rs['user_activetime']?>次</p>

                                                        </div>

                                                    </div>

                                                </a>

                                            </li>

									<?php

										}

									?>

                            </ul>

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </div>

    <div class="bd-rule" style="display:none">

        <div class="content">

            <div class="rule-in">

			<?php

					$i = 1;

					$bigclass_sql = "select * from kboy_bigclass where id in(108,109,110,111) order by bigclass_order asc, id asc";

					$bigclass_rows = mysql_query($bigclass_sql);

					while($bigclass_rs = mysql_fetch_array($bigclass_rows)){

			?>

                <dl class="rule-<?=$i?>">

                    <dt><i></i><?=$bigclass_rs['bigclass_cn']?></dt>

			<?php

						$news_sql = "select * from kboy_news where news_bigclass=".$bigclass_rs['id']."  order by news_top desc,news_order desc, id desc";

						$news_rows = mysql_query($news_sql);

						while($news_rs = mysql_fetch_array($news_rows)){

			?>

                    <dd><a href="help.php?newsid=<?=$news_rs['id']?>" target="_blank"><?=$news_rs['news_title']?></a></dd>

			<?php

						}

			?>

                </dl>

			<?php

					$i ++ ;

					}

			?>

            </div>

        </div>

    </div>

    <!--foot begin-->

	<? include("_include.bottom.footbar.php") ?>

    <!--foot begin-->

    <!--左侧悬浮 begin-->

	<? include("_include.bottom.leftbar.php") ?>

    <!--左侧悬浮 end-->

    <!--右侧悬浮导航 begin-->

	<? include("_include.bottom.rightbar.php") ?>

    <!--右侧悬浮导航 end-->

    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>

    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>

    <script type="text/javascript" src="js/main.js"></script>

    <script type="text/javascript" src="js/activity.js"></script>

    <script type="text/javascript">

        jQuery(".hd-banner").slide({mainCell:".bd ul",effect:"leftLoop",autoPlay:true});

    </script>

</body>

</html>



